package com.order.provider.controller;

import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

@Api(tags = "配置测试")
@RestController
@RequestMapping("/provider")
public class ProviderController {

    @GetMapping(value = "/test/{message}")
    public String test(@PathVariable String message) throws InterruptedException {
//        Thread.sleep(6000);
        return "服务提供者：" + message;
    }


    @GetMapping(value = "/test2")
    public String test2() throws InterruptedException {
//        Thread.sleep(6000);
        return "服务提供者：";
    }
}

